package chapter05.Example10;

public class Example10 {
    public static void main(String[] args) {
        int [] fromArray = {10,11,12,13,14,15};
        int [] toArray = {20,21,22,23,24,25,26};
        System.arraycopy(fromArray,2,toArray,3,4);  
        System.out.println("复制后的数组元素为:");
        for (int i =0; i<toArray.length;i++){
            System.out.println(i+ ":"+toArray[i]);
        }
    }
}
